import { axios } from '@/utils/request'

/**
 * 查询分页列表
 *
 * @author yubaoshan
 * @date 2020/5/25 01:31
 */
export function foodStoreList (parameter) {
  return axios({
    url: '/FoodMaterials/Page',
    method: 'get',
    params: parameter
  })
}

// 食材查询
  export function foodStoreQuery (params) {
  return axios({
    url: '/FoodMaterials/TypeList',
    method: 'get',
    params
  })
}

// 食物分类
export function foodOptionList () {
  return axios({
    url: '/FoodMaterials/TypeList',
    method: 'get',
  })
}

// 食物新增
export function foodStoreAdd (data) {
  return axios({
    url: '/FoodMaterials/Add',
    method: 'post',
    data
  })
}

// 食物修改
export function foodStoreEdit (data) {
  return axios({
    url: '/FoodMaterials/Edit',
    method: 'post',
    data
  })
}


